<?php
/*
 * 新闻
 */
namespace app\home\controller;

use app\common\controller\IndexBase;
use think\facade\Session;
use think\facade\Db;

class News extends IndexBase
{

    protected function initialize()
    {
        parent::initialize();
    }

    //首页
    public function index()
    {
    	$data = Db::table('article')->order('sort','DESC')->paginate();
        return $this->fetch('',['data'=>$data]);
    }



}